package com.cashmama.market.api.application.controller;

import com.cashmama.market.api.application.annos.SignIgnore;
import com.cashmama.market.api.application.annos.VisitorAccessible;
import com.cashmama.market.api.domain.vo.openapi.OpenApiResponse;
import com.fqgj.common.api.ApiResponse;
import com.fqgj.common.api.Response;
import com.fqgj.xjd.user.client.response.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2021/11/2
 * Time: 8:10 上午
 */
@RestController
public class OpenApiMockController {
    private static final Logger LOGGER = LoggerFactory.getLogger(OpenApiMockController.class);

    @VisitorAccessible
    @SignIgnore
    @RequestMapping("/gupta.deal.contract")
    public OpenApiResponse mock1() {
        LOGGER.info("== 访问合同接口 ==");
        return new OpenApiResponse(400, "mock");
    }

    @VisitorAccessible
    @SignIgnore
    @RequestMapping("/firstPush")
    public OpenApiResponse f() {
        LOGGER.info("== firstPush ==");
        return new OpenApiResponse(200, "mock");
    }

    @VisitorAccessible
    @SignIgnore
    @RequestMapping("/secondPush")
    public OpenApiResponse s() {
        LOGGER.info("== secondPush ==");
        return new OpenApiResponse(200, "mock");
    }

    @VisitorAccessible
    @SignIgnore
    @RequestMapping("/thirdPush")
    public OpenApiResponse t() {
        LOGGER.info("== thirdPush ==");
        return new OpenApiResponse(200, "mock");
    }

    @VisitorAccessible
    @SignIgnore
    @RequestMapping("/cashbar/order/pay/url")
    public OpenApiResponse mock2() {
        LOGGER.info("== 访问支付链接接口 ==");
        return new OpenApiResponse(400, "mock");
    }


    @VisitorAccessible
    @SignIgnore
    @RequestMapping("/gupta.payment.confirm")
    public OpenApiResponse mock3() {
        LOGGER.info("== 访问提现接口 ==");
        return new OpenApiResponse(400, "mock");
    }

    @VisitorAccessible
    @SignIgnore
    @RequestMapping("/checkUser")
    public OpenApiResponse mock4() {
        LOGGER.info("== 访问用户是否可用接口 ==");
        return new OpenApiResponse(200, "mock");
    }

    @VisitorAccessible
    @SignIgnore
    @RequestMapping("/gupta.loan.amount")
    public OpenApiResponse mock5() {
        LOGGER.info("== 访问阶段金额接口 ==");
        return new OpenApiResponse(400, "mock");
    }
}
